#ifndef FONTMANAGER_2018
#define FONTMANAGER_2018

#include <windows.h>
#include <GL/gl.h>

class FontManager
{
public:
    FontManager();
    ~FontManager();

private:
    GLuint m_fontBase;
    bool m_isFontBuild;
    unsigned int m_glListNumber;
    unsigned int m_charecterFirst;
    int m_fontHeight;

    static FontManager* fontManagerInstance;
public:
    void buildFont(HDC hdc);
    void drawText(const char* text,int x,int y,float r = 1,float g = 0,float b = 0);
public:
    static const FontManager* getInstance();
};

#endif // FONTMANAGER_2018
